﻿<!DOCTYPE html>
<html>
<head>
    <title>Construction a Real Estates and Builders Category Flat bootstrap Responsive website Template | Home :: w3layouts</title>
    <link href="~/Content/bootstrap.css" rel="stylesheet" type="text/css" media="all">
    <link href="~/Content/style.css" rel="stylesheet" type="text/css" media="all" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Construction  Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <link rel="stylesheet" href="~/Content/flexslider.css" type="text/css" media="screen" />
    <script src="~/Scripts/responsiveslides.min.js"></script>
    <script>
    $(function () {
      $("#slider").responsiveSlides({
      	auto: true,
      	nav: true,
      	speed: 500,
        namespace: "callbacks",
        pager: true,
      });
    });

    </script>
    <script src="~/Scripts/bootstrap.js"></script>
    <!--startsmothscrolling-->
    <script type="text/javascript" src="~/Scripts/move-top.js"></script>
    <script type="text/javascript" src="~/Scripts/easing.js"></script>
    <script type="text/javascript">
		jQuery(document).ready(function($) {
			$(".scroll").click(function(event){
				event.preventDefault();
				$('html,body').animate({scrollTop:$(this.hash).offset().top},1200);
			});
		});
    </script>
    <!--endsmothscrolling-->
    <link rel="stylesheet" href="~/Content/swipebox.css">
    <script src="~/Scripts/jquery.swipebox.min.js"></script>
    <script type="text/javascript">
					jQuery(function($) {
						$(".swipebox").swipebox();
					});
    </script>
    <style>
        body{
            background:url("../../images/banner.jpg");
        }
        .btn{
            border-radius: 1px;
        }
        .navbar-inverse,.footer-section {
            background-color: #323639;
        }
        .body-content{
            margin-top:20px;
            font-family:'黑体';
        }
        footer{
           margin-top:20px;
           background-color:#323639;
           height:50px;
        }
        p,h1,h2,.userd{
            color:white;
        }
        .t{
            width:30px;
            border-radius:100%;
        }
        .caret{
            color:white;
        }
        .buttons{
            font-size:17px;
        }
        label{
            font-weight:500;
        }
        .table > tbody > tr > th{
        
            background-color: #94979C;
            color:white;
            font-weight:500;
            font-size:15px;
        }
        .navbar-default .navbar-nav > li > a{
            font-size:18px;
        }
        .navbar-collapse{
            font-family:'黑体';
        }
        .table>tbody>tr>td{
            font-size:15px;
        }
        .table td, .table>tbody>tr>td{
            padding:8px!important;
        }
    </style>
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="header-top">
                <div class="logo">
                    <h1><a href="/Home/Index">绵阳市司法平台</a></h1>
                </div>
                <div class="buttons">
                    <img class="t" src="~/images/6.jpg" />
                    @if (Session["rolename"].ToString() == "超级管理员")
                    {
                        <span class="userd">@Session["unitname"]-@Session["username"]</span>
                    }
                    else
                    {
                        <span class="userd">@Session["unitname"]-@Session["username"]-@Session["rolename"]</span>
                    }
                    <a href="/Home/Out" style="margin-left:20px;color:white;">退出</a>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="header-bottom">
                @{ 
                    if (ViewBag.mode == null)
                    {
                        justice.Models.justiceEntities dal = new justice.Models.justiceEntities();
                        justice.Models.justice_user user = dal.justice_user.ToList().Find(l=>l.id == Convert.ToInt32(Session["uid"]));
                        justice.Models.Role role = dal.Role.ToList().Find(l=>l.id == user.role_id);
                        <nav class="navbar navbar-default">
                            <div class="container-fluid">
                                <!-- Brand and toggle get grouped for better mobile display -->
                                <div class="navbar-header">
                                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                                        <span class="sr-only">Toggle navigation</span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                    </button>
                                </div>
                                <!-- Collect the nav links, forms, and other content for toggling -->
                                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                    <ul class="nav navbar-nav cl-effect-16">
                                        <li><a href="/Home/Index">主页 <span class="sr-only">(current)</span></a></li>
                                        <li><a href="/shroffbook/shroffbookindex">委托书列表 <span class="sr-only">(current)</span></a></li>
                                        @if (role.RoleName == "前台录入")
                                        {
                                            <li><a href="/Home/ShroffBook">填写委托书 <span class="sr-only">(current)</span></a></li>
                                        }
                                        @if (role.RoleName == "管理员" || role.RoleName == "超级管理员")
                                        {
                                            <li class="dropdown">
                                                <a href="services.html" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">管理员<span class="caret"></span></a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="/Baseinfos/UserInfosIndex">用户列表</a></li>
                                                    <li><a href="/Baseinfos/AddUserIndex">添加用户</a></li>
                                                </ul>
                                            </li>
                                        }
                                        @if (role.RoleName == "管理员")
                                        {
                                            <li class="dropdown">
                                                <a href="services.html" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">角色<span class="caret"></span></a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="/role/index">角色列表</a></li>
                                                    <li><a href="/role/Addroleview">添加角色</a></li>
                                                </ul>
                                            </li>
                                        }
                                        @if (user.unit_id == null && user.insurer_id == null)
                                        {
                                            <li class="dropdown">
                                                <a href="services.html" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">司法机构<span class="caret"></span></a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="/judiciary/index">司法机构列表</a></li>
                                                    <li><a href="/judiciary/Addjudiciaryview">添加司法机构</a></li>
                                                </ul>
                                            </li>
                                            <li class="dropdown">
                                                <a href="services.html" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">保险公司<span class="caret"></span></a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="/inserer/index">保险公司列表</a></li>
                                                    <li><a href="/inserer/Addinsererview">添加保险公司</a></li>
                                                </ul>
                                            </li>
                                        }

                                    </ul>
                                    @{ 
                                            var controllerName = ViewContext.RouteData.Values["controller"].ToString().ToLower();
                                            var actionName = ViewContext.RouteData.Values["action"].ToString().ToLower();
                                            string path = "/" + controllerName + "/" + actionName;
                                            if (path == "/shroffbook/shroffbookindex" || path == "/baseinfos/userinfosindex" || path == "/inserer/index")
                                            {
                                                <form action="/@controllerName/Search" class="navbar-form navbar-right" role="search">
                                                    <div class="form-group">
                                                        <input type="text" name="sewhere" class="form-control" placeholder="Search">
                                                        <input type="submit" value="">
                                                    </div>
                                                    <div class="clearfix"></div>
                                                </form>
                                            }
                                    }
                                </div>
                            </div>
                        </nav>
                                        }
                }
            </div>

        </div>
    </div>
    <div class="container body-content">
        @RenderBody()
    </div>
    <footer>
        <div class="footer-section">
            <div class="container">
                <div class="footer-top">
                    <p>Copyright &copy; 2016.中国四川省绵阳市司法局。</p>
                </div>
            </div>
        </div>
    </footer>

    @RenderSection("scripts", required: false)
</body>
</html>
